<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript">
<!--
	function validarCampos() {
		if(document.getElementById('marca').value != '' &&
			document.getElementById('cor').value != '' &&
			document.getElementById('placa').value != '' &&
			document.getElementById('chassi').value != '' &&
			document.getElementById('ano').value){

			var form = document.forms[0];
			form.submit();
		}
	}
//-->
</script>
</head>
<body>
	<form action="http://localhost:8080/pooII_2013.1/ServletCadastrarVeiculos">
		Marca* <select label="marca" id="marca" name="marca"><br>
			<option value="Chevrolet">Chevrolet</option>
			<option value="Citroen">Citroen</option>
			<option value="Fiat">Fiat</option>
			<option value="Ford">Ford</option>
			<option value="Honda">Honda</option>
			<option value="Hyundai">Hyundai</option>
			<option value="JAC">JAC</option>
			<option value="Kia">Kia</option>
			<option value="Mitsubishi">Mitsubishi</option>
			<option value="Nissan">Nissan</option>
			<option value="Peugeot">Peugeot</option>
			<option value="Renault">Renault</option>
			<option value="Toyota">Toyota</option>
			<option value="Volkswagen">Volkswagen</option>
		</select> <br> 
		Modelo Cor* <select name="cor" id="cor">
			<option value="Preto">Preto</option>
			<option value="Vermelho">Vermelho</option>
			<option value="Branco">Branco</option>
		</select><br>
		Placa* <input type="text" name="placa" id="placa" ><br>
		Chassi* <input type="text" name="chassi" id="chassi" ><br>
		Ano* <input type="text" name="ano" id="ano" >
		<input type="button" onclick="return validarCampos()" value="Cadastrar Veiculo">
	</form>
</body>
</html>